package com.zzxy.spring3.controller;

import com.zzxy.spring3.service.impl.StudentServiceimpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;

@Configurable
public class StudentController {
    @Autowired
    private StudentServiceImpl studentService;

//    public IStudentService getStudentService() {
//        return studentService;
//    }
//
//    public void setStudentService(StudentServiceImpl studentService) {
//        this.studentService = studentService;
//    }


    public void addStudent(String username,String password){
        //1.service
        studentService.addStudent(username,password);
    }

    public void setStudentService(StudentServiceimpl studentService) {
    }
}
